package GUILayer;

import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import java.awt.BorderLayout;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
public class MainMenu {

	private JFrame frame;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					MainMenu window = new MainMenu();
					window.frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the application.
	 */
	public MainMenu() {
		initialize();
	}

	/**
	 * Initialize the contents of the frame.
	 */
	private void initialize() {
		frame = new JFrame();
		frame.setBounds(100, 100, 440, 163);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
		JPanel panel = new JPanel();
		frame.getContentPane().add(panel, BorderLayout.CENTER);
		panel.setLayout(null);
		
		JButton Sales = new JButton("Sales");
		Sales.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				GUILayer.Sales.main();
			}
		});
		Sales.setBounds(42, 11, 140, 34);
		panel.add(Sales);
		
		JButton Administration = new JButton("Administration");
		Administration.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				GUILayer.Administration.main(null);
			}
		});
		Administration.setBounds(244, 11, 140, 34);
		panel.add(Administration);
		
		JButton btnDiscount = new JButton("Discount");
		btnDiscount.setBounds(244, 82, 140, 34);
		panel.add(btnDiscount);
		
		final JButton Customer = new JButton("Customer");
		Customer.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				 
				GUILayer.Customer.main();
			}
		});
		Customer.setBounds(42, 82, 140, 34);
		panel.add(Customer);
	}
}
